package com.itany.cloud.service;

import com.itany.cloud.util.ResponseResult;
import org.springframework.stereotype.Service;

/**
 * Author:shixiaojun@itany.com
 * Date: 2022/3/22 11:24
 * Version: 1.0-SNAPSHOT
 */
@Service
public class UserServiceFallback implements UserService {
    @Override
    public ResponseResult findAll() {
        return ResponseResult.fail("执行查询所有用户信息时遇到了故障");
    }

    @Override
    public ResponseResult findById(Integer id) {
        return ResponseResult.fail("执行根据主键查询指定用户信息时遇到了故障");
    }

    @Override
    public ResponseResult addUser(String username, String password, String phone, String address) {
        return ResponseResult.fail("执行添加指定用户信息时遇到了故障");
    }

    @Override
    public ResponseResult deleteUser(Integer id) {
        return ResponseResult.fail("执行根据主键删除指定用户信息时遇到了故障");
    }

    @Override
    public ResponseResult modifyUser(Integer id, String username, String password, String phone, String address) {
        return ResponseResult.fail("执行修改指定用户信息时遇到了故障");
    }
}
